@extends('layouts.app')

@section('content')
<div class="container" style="margin:55px auto;">
    <div class="row">
        <div class="col-md-12" style="padding:0;">
         <div class="panel panel-default">
                <div class="panel-heading textIndent">收支明细</div>
                <div class="panel-body">
                    @foreach($details as $detail)
                    <div class="panel panel-default" style="border:0;border-left:0;border-right:0;border-bottom:1px solid #f5f5f5;">
                        <!-- <div class="panel-heading textIndent">{{ $detail->typename() }} <span class="right">{{ $detail->created_at }}</span></div> -->
                        <div class="panel-body" style="padding:0 5px 5px 0">
                            <div class="bgWhite">
                                <div class="mxList clearfix">
                                    <div class="mxTime">{{ $detail->created_at }}</div>
                                    <div class="mxInfo">{{ $detail->note }}</div>
                                    <div class="mxMoney @if($detail->money>0) colRed @else colGreen @endif ">{{ $detail->money }}</div><!--colGreen-->
                                </div>
                            </div>
                          <!--   <table class="table table-striped table-bordered table-condensed ">
                                <tr><td>金额</td><td>￥{{ $detail->money }}</td></tr>
                                <tr><td>余额</td><td>￥{{ $detail->balance }}</td></tr>
                                <tr><td>说明</td><td>{{ $detail->note }}</td></tr>
                            </table> -->
                        </div>
                    </div>
                    @endforeach
                    <!-- <div class="panel panel-default">
                        <div class="panel-heading">操作:下单</div>
                        <div class="panel-body">
                            <table class="table table-striped table-bordered table-condensed ">
                                <tr><td>日期</td><td>2016-10-08 16:45</td></tr>
                                <tr><td>账户余额</td><td>9986080.50</td></tr>
                                <tr><td>交易金额</td><td>-10000</td></tr>
                            </table>
                        </div>
                    </div> -->
                    <div align="center">
                    {!! $details->render() !!}
                    </div>
                </div>
            </div>
           <!--  <div class="panel panel-default">
                <div class="panel-heading textIndent">收支明细</div>
                <div class="panel-body">
                    @foreach($details as $detail)
                    <div class="panel panel-default">
                        <div class="panel-heading textIndent">{{ $detail->typename() }} <span class="right">{{ $detail->created_at }}</span></div>
                        <div class="panel-body">
                            <div class="bgWhite">
                                <div class="mxList clearfix">
                                    <div class="mxTime">2016-12-24:23:23:23</div>
                                    <div class="mxInfo">订单结算</div>
                                    <div class="mxMoney">赢500</div>
                                </div>
                            </div>
                            <table class="table table-striped table-bordered table-condensed ">
                                <tr><td>金额</td><td>￥{{ $detail->money }}</td></tr>
                                <tr><td>余额</td><td>￥{{ $detail->balance }}</td></tr>
                                <tr><td>说明</td><td>{{ $detail->note }}</td></tr>
                            </table>
                        </div>
                    </div>
                    @endforeach
                    <div class="panel panel-default">
                        <div class="panel-heading">操作:下单</div>
                        <div class="panel-body">
                            <table class="table table-striped table-bordered table-condensed ">
                                <tr><td>日期</td><td>2016-10-08 16:45</td></tr>
                                <tr><td>账户余额</td><td>9986080.50</td></tr>
                                <tr><td>交易金额</td><td>-10000</td></tr>
                            </table>
                        </div>
                    </div>
                    <div align="center">
                    {!! $details->render() !!}
                    </div>
                </div>
            </div> -->
        </div>
    </div>
</div>
@endsection